<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>流程控制</title>
</head>
<body>
	<!--<script type=text/javascript>
		var x=36;
			y=18;
			z=35;
			if(x>y)
			alert("青年")
			else if (x>z) {alert("中年")}
			else if (x<y) {alert("未成年")};
				
	</script>-->


	<script type=text/javascript>
		var  x = prompt("请输入你的年龄");
		    // x=17;
			y=18;
			z=40;
			h=100;
			if (x<y) {alert("未成年")};
			else if (x>y&&x<z) {alert("青年")};
			else if (x>z&&x<h) {alert("老年")};
			else if (x>h) {alert("长寿")};
			else{alert("外星人")}
	</script>






	<script type=text/javascript></script>
</body>
</html>